package com.example.library

import android.util.Log
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity

/*version 1*/
open class BaseActivity : AppCompatActivity() {

    override fun onResume() {
        super.onResume()
        Toast.makeText(this, "大傻逼ActivityVersion_3_resume", Toast.LENGTH_LONG).show()
        Log.e("BaseActivity", "大傻逼ActivityVersion_3_resume")
    }

}

/*version 2*/
/*open class BaseActivity : AppCompatActivity() {
    override fun onStart() {
        super.onStart()
        Toast.makeText(this, "大傻逼ActivityVersion_2_start", Toast.LENGTH_LONG).show()
        Log.e("BaseActivity", "大傻逼ActivityVersion_2_start")
    }

    override fun onResume() {
        super.onResume()
        Toast.makeText(this, "大傻逼ActivityVersion_2_resume", Toast.LENGTH_LONG).show()
        Log.e("BaseActivity", "大傻逼ActivityVersion_2_resume")
    }

    fun showToast() {
        Toast.makeText(this, "大傻逼ActivityVersion_2_toast", Toast.LENGTH_LONG).show()
        Log.e("BaseActivity", "大傻逼ActivityVersion_2_toast")
    }
}*/
